// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.linqingying.gitcode.api.data.pullrequest

import com.intellij.collaboration.api.dto.GraphQLFragment
import com.intellij.openapi.util.NlsSafe
import com.linqingying.gitcode.api.data.GCActor
import com.linqingying.gitcode.api.data.GCNode
import com.linqingying.gitcode.api.data.pullrequest.timeline.GCPRTimelineItem
import java.util.*

@GraphQLFragment("/graphql/fragment/pullRequestReview.graphql")
data class GCPullRequestReview(override val id: String,
                               val url: String,
                               val author: GCActor?,
                               val body: @NlsSafe String,
                               val state: GCPullRequestReviewState,
                               override val createdAt: Date,
                               val viewerCanUpdate: Boolean)
  : GCNode(id), GCPRTimelineItem
